﻿using System;
using System.Runtime.Serialization;

using QuickShot.Shortcut;

namespace QuickShot
{
    [Serializable]
    public class HotkeyAlreadyRegisteredException : Exception
    {
        public Hotkey Hotkey { get; set; }

        public HotkeyAlreadyRegisteredException(Hotkey hotkey)
        {
            Hotkey = hotkey;
        }

        protected HotkeyAlreadyRegisteredException(SerializationInfo info, StreamingContext context): base(info, context) 
        {
        }
    }
}
